package com.hhd.form.manager;

import com.hhd.form.service.IDesignFormQueryService;
import com.hhd.form.service.IDesignFormService;
import com.hhd.form.vo.FormDefinition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class DefaultFormManager implements FormManager {

    @Autowired
    IDesignFormService formService;

    @Autowired
    IDesignFormQueryService formQueryService;

    @Override
    public void saveFormDefinition(FormDefinition fomDefinition) {
        formService.save(fomDefinition);
    }

    @Override
    public FormDefinition queryById(String id) {
        return formQueryService.queryById(id);
    }
}
